<%@page import="java.util.Date"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.bstek.uflo.service.StartProcessInfo"%>
<%@page import="com.bstek.uflo.service.ProcessService"%>
<%@page import="com.bstek.uflo.utils.EnvironmentUtils"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<%
ProcessService processService=(ProcessService)EnvironmentUtils.getEnvironment().getApplicationContext().getBean(ProcessService.BEAN_ID);
StartProcessInfo info=new StartProcessInfo();
info.setCompleteStartTask(true);
info.setPromoter("jmeter");
Map<String,Object> variables=new HashMap<String,Object>();
variables.put("v1", "jmeter test"+(new Date()).getTime());
variables.put("startDate", new Date());
info.setVariables(variables);
processService.startProcessByName("demo", info);
%>
<h1>流程实例开启成功</h1>

</body>
</html>